const fs = require("fs");
const path = require("path");

const saveResult = {message: '保存成功', pageInfo: {oid: "22"}, data: {oid: "111"}};

let data = [];
fs.readdirSync(path.join(__dirname, "../kingkong")).filter(file => file !== 'index.js').forEach(function (file) {
	data.push(require("../kingkong/" + file))
});

data = data.concat([
	{
		url: "/k/Bmf/ImportBmfAggrModel",
		template: saveResult
	},
	{
		url: "/k/SummaryPageColumnFilter",
		template: saveResult
	},
	{
		url: "/k/admin/saveBuilderPage",
		template: saveResult
	},
	{
		url: "/k/workflow/saveWorkflow",
		template: saveResult
	},
	{
		url: "/k/BmfAggr/delete",
		template: {data: {id: 100}}
	},
	{
		url: "/k/pageBuilder/check",
		template: saveResult
	},
	{
		url: "/k/workflow/start",
		template: saveResult
	},
	{
		url: "/k/internal/integration/save",
		template: saveResult
	},
	{
		url: "/k/workFlow/queryCount",
		template: {"status": "success", "message": null, "data": {count: 399}, "debugInfo": null, "executeScript": null}
	}
]);

module.exports = data;
